package com.yic.module.wms.controller.admin.warehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;

import javax.validation.constraints.NotNull;


/**
 * 仓库 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class WarehouseExcelVO {

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty("仓库名称")
    private String name;

    @ExcelProperty("仓库代码")
    private String code;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty(value = "负库存", converter = DictConvert.class)
    @DictFormat("system_integer_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer openNegative;

    @ExcelProperty(value = "库区", converter = DictConvert.class)
    @DictFormat("system_integer_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer openArea;

    @ExcelProperty(value = "安全库存", converter = DictConvert.class)
    @DictFormat("system_integer_status")
    private Integer openSalf;

    @ExcelProperty(value = "补货点", converter = DictConvert.class)
    @DictFormat("system_integer_status")
    private Integer openReorder;

    @ExcelProperty(value = "仓库类型", converter = DictConvert.class)
    @DictFormat("wms_warehouse_category") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer category;

    @ExcelProperty("显示顺序")
    private Integer sort;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("工厂")
    private Long factoryId;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
